package net.moon;

/**
 * @author moonlan
 * date 2021/5/3 11:39
 */
@SuppressWarnings(value = "unused")
public class DataAdapter implements DataOperation {

    private final QuickSort sort = new QuickSort();
    private final BinarySearch search = new BinarySearch();

    @Override
    public void sort(int[] arr) {
        sort.quickSort(arr);
    }

    @Override
    public int search(int[] arr, int value) {
        return search.binarySearch(arr, value);
    }
}
